<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('订单修改')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-NewOrder-edit" th:object="${type}">
        <div class="form-group">
            <label class="col-sm-3 control-label">订单编号：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="order_id" id="order_id" th:field="*{order_id}" hidden>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">订单名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="order_name" id="order_name" th:field="*{order_name}" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">客户信息：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="customer_file" id="customer_file" th:field="*{customer_file}" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">项目总额：</label>
            <div class="col-sm-8">
                <textarea id="product_sum" name="product_sum" class="form-control">[[*{product_sum}]]</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">配送方式：</label>
            <div class="col-sm-8">
                <textarea id="deliver" name="deliver" class="form-control">[[*{deliver}]]</textarea>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">销售人员：</label>
            <div class="col-sm-8">
                <textarea id="sale_name" name="sale_name" class="form-control">[[*{sale_name}]]</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">部门负责人员：</label>
            <div class="col-sm-8">
                <textarea id="manager_name" name="manager_name" class="form-control">[[*{manager_name}]]</textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "sales/orders/search";


    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-NewOrder-edit').serialize());
        }
    }
</script>
</body>
</html>
